package pers.zc.activiti.shejimoshi.zhuangtai;

import pers.zc.activiti.shejimoshi.zhuangtai.node.Node;
import pers.zc.activiti.shejimoshi.zhuangtai.node.TextNode;
import pers.zc.activiti.shejimoshi.zhuangtai.type.TypeStart;

/**
 * @Annotion: 最终使用类
 * @ClassName: Context
 * @Author: Lin Fuyuan
 * @Date: 2019/11/16  19:40
 * @Version: 1.0
 */
public class Test {
    public static void main(String[] args) {

        Node node  = new TextNode();
        node.setStatus("正常");
        //设置起始状态
        node.setType(new TypeStart());
        node.run();
        node.run();
        node.run();
        node.run();

    }

}
